package com.mall.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.mall.bean.dto.ProductDto;
import com.mall.bean.model.Product;
import com.mall.common.utils.PageParam;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface ProductMapper extends BaseMapper<Product> {
    IPage<ProductDto> pageByTagId(Page<ProductDto> page,  @Param("tagId")long tagId);
}
